<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ page session="false"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form:form id="form" method="post" action="code/save" modelAttribute="codeDto" cssClass="form-horizontal">
		<fieldset>
			<legend>Code Info</legend>

			<div class="control-group">
				<form:label path="description" cssClass="control-label">
		  			Description 
				</form:label>
				<div class="controls">
					<form:input path="description" />
					<span class="help-inline"><form:errors path="description" /></span>
				</div>
			</div>

			<div class="control-group">
				<form:label path="authorId" cssClass="control-label">
		  			AuthorId 
				</form:label>
				<div class="controls">
					<form:input path="authorId" />
					<span class="help-inline"><form:errors path="authorId" /></span>
				</div>
			</div>

			<div class="control-group">
				<form:label path="authorId" cssClass="control-label">
		  			Code 
				</form:label>
				<div class="controls">
					<form:textarea path="content" rows="10" cols="50" cssClass="span7" />
					<span class="help-inline"><form:errors path="content" /></span>
				</div>
			</div>

		</fieldset>
		<div class="form-actions">
			<button type="submit" class="btn btn-primary">Add</button>
			<button type="reset" class="btn">Cancel</button>
		</div>
	</form:form>
</body>
</html>